package com.core.netty.http.work;

import java.util.HashMap;
import java.util.Map;

public class HttpMySession {

    private volatile Map<String, Object> attr = new HashMap<>();

    private String sessionId;

    public void putAttr(String key, Object value) {
        attr.put(key, value);
    }

    public Object getAttr(String key, Object value) {
        return attr.get(key);
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
}
